-- GENERATED SPELL FOR [Forgotten Knight] --


function spell0_27224(pUnit, Event) --@Throw,n/a--
pUnit:FullCastSpellOnTarget(38556,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27224', 1500, 1)
end

function Sorts_27224(pUnit, Event)
local choix_sorts_27224 = math.random(0, 0)
if choix_sorts_27224 == 0 then
pUnit:RegisterEvent('spell0_27224', 1, 1)
end
end

function mob27224_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27224', math.random(1500, 3000), 1)
end

function mob27224_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27224_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27224_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27224, 1, 'mob27224_Action')
RegisterUnitEvent(27224, 2, 'mob27224_Leave')
RegisterUnitEvent(27224, 3, 'mob27224_Kill')
RegisterUnitEvent(27224, 4, 'mob27224_Die')
